import { ref } from "vue"
interface Param {
    initialValue: number;
    delay: number;
}

export function useCounter(param: Param) {
    const count = ref(param.initialValue);
    const increment = () => {
        count.value++;
    }
    return {
        count, increment
    }
}